//
// Created by wuzhe on 2022/4/27.
//

#ifndef UNIVERSEROOM_SLAVE_H
#define UNIVERSEROOM_SLAVE_H


#include "Entity.h"
#include "Space.hh"
#include "state/SlaveState.h"

class Slave : public Entity {
public:

    Slave(int num);
    Space &space;
    SlaveState *slaveState = nullptr;

    Entity *process(ParseRes &res) override;

    std::list<std::string> roomNameList;


    void sendRoomId(std::string roomId);

    // only slave server
    void createRoom(std::string roomName);
};


#endif //UNIVERSEROOM_SLAVE_H
